package com.powernode.config;

/**
 * @version 1.0
 * @Date 2024/8/20 15:49
 * @Author 付~~~
 */

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * 微信小程序配置类,相当于白名单
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@ConfigurationProperties(prefix = "wx")
@RefreshScope   //改变就自动读取，自动刷新
public class WxParamConfig {
    /**
     * 微信小程序appid
     */
    private String appid;
    /**
     * 微信小程序的密钥
     */
    private String secret;
    /**
     * 登录凭证校验接口url地址
     */
    private String url;
    /**
     * 微信小程序登录密码(固定：WECHAT)
     */
    private String pwd;
}
